package com.ruoyi.activiti.bpmnparse;

import java.util.List;
import java.util.Map;

public abstract class Translator {
    public final static String BPMN_TYPE = "bpmnType";
    public final static String BPMN_VALUE = "value";
    public final static String BPMN_ID = "id";
    public final static String BPMN_NAME = "name";
    public final static String BPMN_ASSIGNEE = "activiti:assignee";
    public final static String BPMN_GROUP = "activiti:candidateGroups";
    public final static String BPMN_EXTENSION_ELE = "extensionElements";
    public final static String BPMN_MULTI_INSTANCE = "multiInstanceLoopCharacteristics";

    /**
     * 把sourceMap的图形描述文件Map转换成bpmn对应的Map对象
     * @param sourceMap
     * @return
     */
    abstract public Map<String,Object> translate(Map<String,Object> sourceMap);
    abstract public String getTaskType();
}
